package com.spring.service.impl;

import javax.inject.Inject;

import org.springframework.stereotype.Repository;

import com.spring.dao.IUserDao;
import com.spring.model.User;
import com.spring.service.IUserService;
@Repository("userService")
public class UserServiceImpl implements IUserService {

	private IUserDao userDao;

	public IUserDao getUserDao() {
		return userDao;
	}
	@Inject
	public void setUserDao(IUserDao userDao) {
		this.userDao = userDao;
	}

	@Override
	public void addUser(User user) {
		userDao.addUser(user);

	}

	@Override
	public void delUser(int id) {
		userDao.delUser(id);

	}

	@Override
	public void updateUser(int id) {
		userDao.update(id);

	}

	@Override
	public User loadUser(int id) {
		userDao.loadUser(id);
		return null;
	}

}
